import httpRequest from '@/utils/request'

// 获取全部权限列表
export const getPermissionDataAPI = () => httpRequest({ url: `sys/permission` })

// 添加权限数据
export const addPermissionAPI = (data) => httpRequest({ url: `sys/permission`, method: 'POST', data })

// 删除权限数据
export const delPermissionAPI = (id) => httpRequest({ url: `/sys/permission/${id}`, method: 'DELETE' })

// 编辑权限数据
export const putPermissionAPI = (data) => httpRequest({ url: `/sys/permission/${data.id}`, method: 'PUT', data })

